#include <iostream>
using namespace std;
int main()
{
	int t;
	while(cin>>t){
		for(int i=0;i<t;i++){
			string s;
			cin>>s;
			int sum=0;
			for(int j=0;j<s.length();j++){
				if(s[j]>='a'&&s[j]<='z') sum+=1;
			}
			int index=sum%26;
			if(index==0){
				cout<<"z"<<endl;
				continue;
			} 
			else{
				cout<<(char)(96+index)<<endl;
			}
		}
	}
}
